package com.studyweb.mapper;

import com.studyweb.pojo.entity.PoliticsAccumulation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface PoliticsAccumulationMapper {
    
    List<PoliticsAccumulation> list();
    
    PoliticsAccumulation getById(Long id);
    
    void insert(PoliticsAccumulation politicsAccumulation);
    
    void update(PoliticsAccumulation politicsAccumulation);
    
    void deleteById(Long id);
    
    // 批量删除时政积累
    int batchDeleteByIds(@Param("ids") List<Long> ids);
    
    List<PoliticsAccumulation> listByKeyword(@Param("keyword") String keyword);
}